package com.csj.mvvm.ui.main

import com.csj.mvvm.databinding.ActivityThemeDemoBinding
import com.csj.mvvm.ui.base.BaseActivity
import com.csj.mvvm.ui.base.BaseViewModel
import com.csj.mvvm.xml.AppTheme
import com.csj.mvvm.xml.Themes

class ThemeDemoActivity : BaseActivity<BaseViewModel, ActivityThemeDemoBinding>() {

    override fun initClick() {
    }

    override fun initData() {
        v.btnDefault.setOnClickListener { AppTheme.update(Themes.Other) }
        v.btnDay.setOnClickListener { AppTheme.update(Themes.Day) }
        v.btnNight.setOnClickListener { AppTheme.update(Themes.Night) }
    }

    override fun initVM() {
    }
}